package com.hongying.consumer;

import com.hongying.constant.RabbitMqConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = RabbitMqConstant.HELLO_QUEUE)
@Slf4j
public class HelloReceiver {


    @RabbitHandler
    public void process(String hello){
        log.info("Receive:{}",hello);

    }

}
